/* http://colormind.io/ */
/* Foreground */
/* Alt Foreground */
/* Accent */
/* Alt Accent */
/* Background */
/* Alt Background */

/* Keep this, it gests removed after boot up but it sets the style for boot up before settings are loaded */
.theme-default {
  --foreground: hsl(0, 0%, 100%);
  background: hsl(0, 0%, 15%);
  --background: hsl(0, 0%, 15%);
  --alt-background: hsl(280, 50%, 30%);
  --alt-foreground: hsl(280, 75%, 75%);
  --accent: hsl(280, 75%, 50%);
  --alt-accent: hsl(280, 75%, 90%);

  /* --foreground: #FFFFFF;
  --alt-foreground: #BBBBBB;
  --accent: #8CD5DD;
  --alt-accent: #CAE5D8;
  --background: #1E1F22;
  background: #1E1F22;
  --alt-background: #606060; */

  /* Font theme variables */
  --font-family: "Courier New", monospace;
  --task-title-font-weight: 600;
  /* Font normalization variables */
  --task-title-line-height: 1;
  --task-title-letter-spacing: 0px;
  --task-title-font-size: 16px;
  --general-line-height: 1.2;
  --general-letter-spacing: 0px;
}

@media (prefers-color-scheme: light) {
  .theme-default {
    --foreground: hsl(0, 0%, 0%);
    background: hsl(0, 0%, 95%);
    --background: hsl(0, 0%, 95%);
    --alt-background: hsl(280, 35%, 75%);
    --alt-foreground: hsl(280, 100%, 30%);
    --accent: hsl(280, 100%, 35%);
    --alt-accent: hsl(280, 100%, 75%);

    /* --foreground: #40434F;
    --alt-foreground: #717171;
    --accent: #68B2FB;
    --alt-accent: #416AB2;
    --background: #EDEDED;
    background: #EDEDED;
    --alt-background: #DFE1E7; */
  }
}

@keyframes pulsate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes click-press {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

* {
  font-family: var(--font-family);
  color: var(--foreground);
  line-height: var(--general-line-height);
  letter-spacing: var(--general-letter-spacing);
}

.wrapper {
  outline: none;
}

html {
  background: var(--background);
}

body {
  overflow: hidden;
  -webkit-app-region: drag;
  margin: 0px;
}

.container {
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.title {
  color: var(--foreground);
  font-size: 50px;
  margin: 0;
  -webkit-app-region: no-drag;
  font-weight: normal;
  line-height: var(--general-line-height);
  letter-spacing: var(--general-letter-spacing);
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 20px;
}

.header-buttons {
  display: flex;
  flex-direction: row;
  -webkit-app-region: no-drag;
}

.header-buttons p {
  margin-left: 35px;
  margin-bottom: 5px;
}

.title-container {
  display: flex;
  gap: 16px;
}

.start-trial-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  border: 0px;
  padding: 8px;
}

.start-trial-button:hover {
  font-weight: bold;
  animation: pulsate 0.25s ease both;
}

.start-trial-button:active {
  font-weight: bold;
  animation: click-press 0.25s ease both;
}

.start-trial-button span {
  font-size: 12px;
  font-weight: 600;
  color: var(--background);
}

.header-separator {
  background-color: var(--alt-foreground);
  width: 100%;
  height: 2px;
}

.wrapper::-webkit-scrollbar {
  display: none;
}

.wrapper {
  overflow: auto;
  -webkit-app-region: no-drag;
  margin-bottom: 20px;
}

.daily {
  -webkit-app-region: no-drag;
}

.week {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-height: 200px;
  /* height: fit-content; */
  min-width: 800px;
  border-left: 1px solid var(--alt-foreground);
  border-right: 1px solid var(--alt-foreground);
}

.week-normal {
  display: flex;
  flex-direction: column;
}
.week-normal .week-content-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.week-normal .week-content-wrapper.collapsed::after {
  content: '';
  position: absolute;
  bottom: -5px; /* Extend below the wrapper to cover all gaps */
  left: 0;
  right: 0;
  height: 35px; /* Increased height to ensure full coverage */
  background: transparent;
  pointer-events: auto;
  z-index: 10;
}

.week-bottom-bar {
  height: 7px;
  width: 100%;
  background-color: var(--alt-foreground);
}

.week-bottom-bar:hover {
  cursor: url('../../../assets/images/collapse_cursor.svg') 8 8, auto;
}

.week60 {
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.tray {
  -webkit-app-region: no-drag;
  position: absolute;
  bottom: 0;
  background-color: var(--background);
  left: 0;
  border: 1px solid var(--foreground);
  /* If you change this you need to change the task tray day width too */
  min-width: 250px;
  max-width: 250px;
}

.ctxMenu {
  margin: 15px;
  display: none;
  z-index: 100;
  padding: 2px 5px;
  border-radius: 10px;
  position: absolute;
  background-color: var(--background);
  border: 1px solid var(--foreground);
}

.menu-item:last-child {
  border-bottom: none !important;
}

menu {
  position: absolute;
  padding: 0;
  margin: 0;
  background-color: var(--background);
}

.menu-item {
  position: relative;
  padding: 5px 10px;
  color: var(--foreground);
  border-bottom: 1px solid var(--alt-background);
}

.menu-item:hover {
  font-weight: bold;
}

.menu-item:active {
  font-weight: bold;
  animation: click-press 0.25s ease both;
}

.menu-item[value]:before {
  content: attr(value);
}

.notification {
  position: absolute;
  display: flex;
  z-index: 100;
  top: 20px;
  right: 50%;
  transform: translate(50%, 0px);
  opacity: 1;
  transition: opacity 1s;

  background-color: var(--alt-background);
  padding: 5px;
  border-radius: var(--modal-border-radius);
  max-width: 30vw;
  max-height: 100px;

  /* Allow user to click through */
  pointer-events: none;
}

.notification.hide {
  opacity: 0;
}

.notification p {
  font-size: 18px;
  margin: 5px;
  overflow: hidden;
  /* text-overflow: ellipsis;
  white-space: nowrap; */
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
}

.notification button {
  background-color: unset;
  border: var(--foreground) 0px solid;
  font-size: 16px;
  width: fit-content;
  align-self: start;
}

.notification button:hover {
  animation: pulsate 0.25s ease both;
  transition: border 0.5s;
}

/* Clicked */
.notification button:active {
  animation: click-press 0.25s ease both;
}

.progress-bar-container {
  width: 500px;
  display: none;
}

.progress-striped .progress-bar {
  background-color: var(--accent);
  position: absolute;
  left: 5px;
  right: 5px;
  animation: progressAnimationStrike 6s linear;
  height: 6px;
}

@keyframes progressAnimationStrike {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}

.splash {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background-color: var(--background);
  align-content: center;
  justify-items: center;
}

.splash p {
  font-size: 80px;
}

.days-of-the-week {
  display: none;
  flex-direction: row;
  width: 100%;
}

.days-of-the-week p {
  width: 100%;
  border: var(--accent) 2px solid;
  margin: 0px;
  padding: 8px;
  font-size: 18px;
	font-weight: 600;
}

.alt-mode-label {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 18px;
  color: var(--foreground);
  background-color: var(--alt-background);
  padding: 10px;
  border-radius: 10px;
}

.upsell-image {
  display: none;
  border-radius: 20px;
  overflow: hidden;
  object-fit: contain;
  position: absolute;
  z-index: 500;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}